String splitting in Scala without discarding trailing empty strings